﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace mvc.Controllers
{
    /// <summary>
    /// 地图控制器
    /// </summary>
    public class MapController : Controller
    {
        public ActionResult Map()
        {
            return View();
        }

        [HttpPost]
        public JsonResult Map(string id)
        {
            string o = HttpContext.Request.Form[0];
            JsonResult jsonResult = new JsonResult();
            jsonResult.Data = new object[] { new { feature = o }, new { feature = "yyyyyy" } };
            jsonResult.JsonRequestBehavior = JsonRequestBehavior.AllowGet;
            return jsonResult;
        }
    }
}
